package com.jbm.jbmsupplier.util;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by lyh on 2017-03-21.
 */

public class ClickTimesEntity  extends com.jbm.jbmsupplier.util.ICtrl implements Serializable {

    private static final long serialVersionUID = 9065494839001927790L;
    private int id;
    private Integer type;
    private Integer loginId;
    private Integer mainId;
    private Date createDate;
    private String serialUmber;
    public  ClickTimesEntity(){}
    public  ClickTimesEntity(String method, Integer loginId,Integer type, Integer mainId,String serialUmber){
        this.method=method;
        this.loginId=loginId;
        this.type=type;
        this.serialUmber=serialUmber;
        this.mainId=mainId;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getLoginId() {
        return loginId;
    }

    public void setLoginId(Integer loginId) {
        this.loginId = loginId;
    }

    public Integer getMainId() {
        return mainId;
    }

    public void setMainId(Integer mainId) {
        this.mainId = mainId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ClickTimesEntity that = (ClickTimesEntity) o;

        if (id != that.id) return false;
        if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
        if (loginId != null ? !loginId.equals(that.loginId) : that.loginId != null) return false;
        if (mainId != null ? !mainId.equals(that.mainId) : that.mainId != null) return false;
        if (type != null ? !type.equals(that.type) : that.type != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (loginId != null ? loginId.hashCode() : 0);
        result = 31 * result + (mainId != null ? mainId.hashCode() : 0);
        result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
        return result;
    }


    public String getSerialUmber() {
        return serialUmber;
    }

    public void setSerialUmber(String serialUmber) {
        this.serialUmber = serialUmber;
    }
}
